- title 'Sign up to easyBacklog'
- content_for :head do
  = javascript_include_tag 'validation', 'register_and_account'

- content_for :title do
  %h1= "Get access to account “#{truncate(@invite_account.name, :length => 40)}”"

#invite
  %p
    You have been invited to join easyBacklog, a simple Agile backlog management tool designed for agencies.
  %p
    = "In order to gain access to the “#{truncate(@invite_account.name, :length => 30)}” account you will either need to register for free now, or log in using your existing account if you have previously created one with easyBacklog."
  .sign-up
    %h2 Register a new account
    = form_for('user', :url => registration_path(@user), :html => { :id => 'new_user'} ) do |f|
      != render :partial => '/devise/registrations/form', :locals => { :f => f,  :resource => @user, :user => @user }
      %p= f.submit "Register"
  .or
    OR
  .login
    %h2 Log in with an existing account
    %p
      If you have not used easyBacklog before, then you must register a new account.
    = render :partial => '/devise/sessions/form'